package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 勋章管理对象 t_medal
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class TMedal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 勋章id */
    private Long medalId;

    /** 勋章名称 */
    @Excel(name = "勋章名称")
    private String medalName;

    /** 勋章图片路径 */
    @Excel(name = "勋章图片路径")
    private String medalImg;

    /** 所属运动类型id（关联运动类型表sport_type的type_id） */
    @Excel(name = "所属运动类型id", readConverterExp = "关=联运动类型表sport_type的type_id")
    private Long typeId;

    /** 获得条件描述 */
    @Excel(name = "获得条件描述")
    private String medalDescription;

    /** 卡路里条件阙值 */
    @Excel(name = "卡路里条件阙值")
    private Long conditionValue;

    /** 删除标识,未删除为0，已删除为1 */
    @Excel(name = "删除标识,未删除为0，已删除为1")
    private Long deleteFlag;

    /** 版本号 */
    @Excel(name = "版本号")
    private String version;

    public void setMedalId(Long medalId) 
    {
        this.medalId = medalId;
    }

    public Long getMedalId() 
    {
        return medalId;
    }

    public void setMedalName(String medalName) 
    {
        this.medalName = medalName;
    }

    public String getMedalName() 
    {
        return medalName;
    }

    public void setMedalImg(String medalImg) 
    {
        this.medalImg = medalImg;
    }

    public String getMedalImg() 
    {
        return medalImg;
    }

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public void setMedalDescription(String medalDescription) 
    {
        this.medalDescription = medalDescription;
    }

    public String getMedalDescription() 
    {
        return medalDescription;
    }

    public void setConditionValue(Long conditionValue) 
    {
        this.conditionValue = conditionValue;
    }

    public Long getConditionValue() 
    {
        return conditionValue;
    }

    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }

    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("medalId", getMedalId())
            .append("medalName", getMedalName())
            .append("medalImg", getMedalImg())
            .append("typeId", getTypeId())
            .append("medalDescription", getMedalDescription())
            .append("conditionValue", getConditionValue())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteFlag", getDeleteFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("version", getVersion())
            .toString();
    }
}
